package com.addressbook.tests;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.Properties;

import com.addressbook.fw.ApplicationManager;
import com.addressbook.fw.JdbcHelper;

public class Sample {

	/**
	 * @param args
	 * @throws IOException 
	 * @throws FileNotFoundException 
	 */
	public static void main(String[] args) throws FileNotFoundException, IOException {
		Properties properties = new Properties();
		properties.load(new FileReader(new File("application.properties")));
		ApplicationManager app = new ApplicationManager();
		app.init(properties);
//		JdbcHelper helper = new JdbcHelper(app, "jdbc:mysql://localhost/addressbook?user=root&password=");
//		System.out.println(helper.listGroups());
		System.out.println(app.getHibernateHelper().listGroups());
	}

}
